Remove most named character references from output
[lhc/web/wiklou.git] / includes / specials / SpecialProtectedtitles.php
index 2274f93..f6608fb 100644 (file)
@@ -16,7 +16,7 @@ class ProtectedTitlesForm {
        function showList( $msg = '' ) {
                global $wgOut, $wgRequest;
 
-               if ( "" != $msg ) {
+               if ( $msg != "" ) {
                        $wgOut->setSubtitle( $msg );
                }
 
@@ -85,10 +85,11 @@ class ProtectedTitlesForm {
        }
 
        /**
-        * @param $namespace int
+        * @param $namespace Integer:
         * @param $type string
         * @param $level string
-        * @param $minsize int
+        * @param $sizetype Unused
+        * @param $size Unused
         * @private
         */
        function showOptions( $namespace, $type='edit', $level, $sizetype, $size ) {
@@ -99,10 +100,10 @@ class ProtectedTitlesForm {
                return "<form action=\"$action\" method=\"get\">\n" .
                        '<fieldset>' .
                        Xml::element( 'legend', array(), wfMsg( 'protectedtitles' ) ) .
-                       Xml::hidden( 'title', $special ) . "&nbsp;\n" .
-                       $this->getNamespaceMenu( $namespace ) . "&nbsp;\n" .
-                       $this->getLevelMenu( $level ) . "&nbsp;\n" .
-                       "&nbsp;" . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" .
+                       Xml::hidden( 'title', $special ) . "&#160;\n" .
+                       $this->getNamespaceMenu( $namespace ) . "&#160;\n" .
+                       $this->getLevelMenu( $level ) . "&#160;\n" .
+                       "&#160;" . Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . "\n" .
                        "</fieldset></form>";
        }
 
@@ -110,12 +111,12 @@ class ProtectedTitlesForm {
         * Prepare the namespace filter drop-down; standard namespace
         * selector, sans the MediaWiki namespace
         *
-        * @param mixed $namespace Pre-select namespace
+        * @param $namespace Mixed: pre-select namespace
         * @return string
         */
        function getNamespaceMenu( $namespace = null ) {
                return Xml::label( wfMsg( 'namespace' ), 'namespace' )
-                       . '&nbsp;'
+                       . '&#160;'
                        . Xml::namespaceSelector( $namespace, '' );
        }
 
@@ -147,7 +148,7 @@ class ProtectedTitlesForm {
                }
 
                return
-                       Xml::label( wfMsg('restriction-level') , $this->IdLevel ) . '&nbsp;' .
+                       Xml::label( wfMsg('restriction-level') , $this->IdLevel ) . '&#160;' .
                        Xml::tags( 'select',
                                array( 'id' => $this->IdLevel, 'name' => $this->IdLevel ),
                                implode( "\n", $options ) );